# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-sqlalchemy_schemadisplay
_pkgname=sqlalchemy_schemadisplay
pkgver=2.0
pkgrel=3
pkgdesc='Turn SQLAlchemy DB Model into a graph.'
arch=('any')
url='https://pypi.org/project/sqlalchemy_schemadisplay/#files'
license=('MIT')
depends=('python' 'python-sqlalchemy')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('e87602b86e77c1749c9db70acfc815cf76c36c53db31e5fe87725500f4de1fcbd9721a65692d81ab00ae8931a07d4b04172d72c317ac53e0621cef0f4f6a1ea6')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

